package chainList;
import chainList.*;

public class Test {
    public static void main(String[] args) {
        ChainList test = new ChainList();
//        test.addFirst(1);
//        test.addFirst(2);
//        test.addFirst(3);
//        test.addFirst(4);
        test.addLast(2);
        test.addLast(3);
        test.addLast(4);
        test.addIndex(3,12);
        test.disPlay();
        System.out.println("==========");
        test.clear();
        test.disPlay();
        System.out.println("链表当前的长度是："+test.size());
    }
}
